#include "SMPPMsMsgWaitFacilities.hpp"

using namespace smpp::pdu;

MsMsgWaitFacilities::MsMsgWaitFacilities(const quint8 nValue):
TLV(TLVtags::TAG_MS_MSG_WAIT_FACILITIES,1),_Value(nValue){}

MsMsgWaitFacilities::MsMsgWaitFacilities(
const MsMsgWaitFacilities &nMsMsgWaitFacilities):
TLV(nMsMsgWaitFacilities),_Value(nMsMsgWaitFacilities.getValue()){}

bool MsMsgWaitFacilities::operator ==(
const MsMsgWaitFacilities &nMsMsgWaitFacilities) const{
	return (TLV::operator == (nMsMsgWaitFacilities) && 
			_Value == nMsMsgWaitFacilities.getValue());
}

bool MsMsgWaitFacilities::operator !=(
	const MsMsgWaitFacilities &nMsMsgWaitFacilities) const{
	return !this->operator == (nMsMsgWaitFacilities);
}

MsMsgWaitFacilities &MsMsgWaitFacilities::operator = (
	const MsMsgWaitFacilities &nMsMsgWaitFacilities){
	if(*this == nMsMsgWaitFacilities)
		return *this;
	TLV::operator = (nMsMsgWaitFacilities);
	_Value = nMsMsgWaitFacilities.getValue();
	return *this;
}

void MsMsgWaitFacilities::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 MsMsgWaitFacilities::getValue() const{
	return _Value;
}
